import QtQuick 2.15
import QtQuick.Controls 2.15


Tumbler{

    id:root
    Component {
            id: cusDelgate

            Text {
                text: modelData
                opacity: 0.8
                horizontalAlignment: Text.AlignHCenter
                verticalAlignment: Text.AlignVCenter
                font.pixelSize: 20
                color: "white"
            }
        }
    function find(criteria) {
      for(var i = 0; i < model.length; ++i){
          if (criteria===model[i])
              return i
      }
      return -1
    }
    visibleItemCount: 1
    model:[0,1,2,3,4]
    delegate: cusDelgate
}
